#include "StatementList.h"

using namespace std;

StatementList::~StatementList()
{
	for( list<Node*>::iterator it = statements.begin(); it != statements.end(); it++ )
	{
		delete(*it);
	}
}

void StatementList::addStatement(Node * statement)
{ statements.push_back(statement); }

const list<Node*> & StatementList::getStatementList() const
{ return statements; }

void StatementList::accept(Visitor & v)
{ v.visitStatementList(this); }

